package com.demo.test.abstractFectory;

import com.demo.test.abstractFectory.abs.TVElectric;
import com.demo.test.abstractFectory.abs.WashingElectric;
import com.demo.test.abstractFectory.iml.Factory;

public class Client {

    public static void main(String[] agr){

        Factory factory1 = new WuHanFactory();
        Factory factory2 = new HangZhouFactory();

        TVElectric tvElectric1 = factory1.createTVElectric();
        tvElectric1.show();

        TVElectric tvElectric2 =  factory2.createTVElectric();
        tvElectric2.show();

        WashingElectric washingElectric1 = factory1.createWashingElectric();
        washingElectric1.show();

        WashingElectric washingElectric2 = factory2.createWashingElectric();
        washingElectric2.show();

    }
}
